// import { methods } from "../uni_modules/uview-ui/libs/mixin/mixin.js";
import http from "./http.js";

//上传图片
export const uploadImg = http.BASE_URL + "/api/common/upload";


//登录
export function login(data) {
	return http.request({
			url: "/api/login/index",
			method: "post",
		},
		data,
		true
	);
}



//发送邮箱验证码

export function emailSend(data) {
	return http.request({
			url: "/api/login/email_send",
			method: "post",
		},
		data,
		true
	);
}



//忘记密码
 
 export function resetpassword(data) {
 	return http.request({
 			url: "/api/login/resetpassword",
 			method: "post",
 		},
 		data,
 		true
 	);
 }


//配置
export function getConfig(data) {
	return http.request({
			url: "/api/index/get_config",
			method: "post",
		},
		data,
		true
	);
}


//轮播图
export function banner(data) {
	return http.request({
			url: "/api/index/banner",
			method: "post",
		},
		data,
		false
	);
}



//资讯分类
export function indexCategory(data) {
	return http.request({
			url: "/api/activity/index_category",
			method: "post",
		},
		data,
		false
	);
}



//资讯列表
export function activityIndex(data) {
	return http.request({
			url: "/api/activity/index",
			method: "post",
		},
		data,
		false
	);
}




//资讯详情
export function indexdetail(data) {
	return http.request({
			url: "/api/activity/indexdetail",
			method: "post",
		},
		data,
		true
	);
}



//任务列表
export function taskList(data) {
	return http.request({
			url: "/api/task/task",
			method: "post",
		},
		data,
		false
	);
}



//任务列表详情
export function taskDetails(data) {
	return http.request({
			url: "/api/task/task_details",
			method: "post",
		},
		data,
		true
	);
}




//回复任务
export function replyTask(data) {
	return http.request({
			url: "/api/task/reply_task",
			method: "post",
		},
		data,
		true
	);
}



//会议列表
export function meetingList(data) {
	return http.request({
			url: "/api/task/meeting",
			method: "post",
		},
		data,
		false
	);
}



//会议列表详情
export function meetingDetails(data) {
	return http.request({
			url: "/api/task/meeting_details",
			method: "post",
		},
		data,
		true
	);
}




// 考试列表
export function examination(data) {
	return http.request({
			url: "/api/task/examination",
			method: "post",
		},
		data,
		false
	);
}


// 考试列表详情
export function examinationDetails(data) {
	return http.request({
			url: "/api/task/examination_details",
			method: "post",
		},
		data,
		true
	);
}



//用户信息
export function userinfo(data) {
	return http.request({
			url: "/api/user/userinfo",
			method: "post",
		},
		data,
		false
	);
}



//绑定邮箱
export function perfect(data) {
	return http.request({
			url: "/api/user/perfect",
			method: "post",
		},
		data,
		false
	);
}



//学生列表
export function studentList(data) {
	return http.request({
			url: "/api/user/student_list",
			method: "post",
		},
		data,
		false
	);
}



//上传头像
export function editAvatar(data) {
	return http.request({
			url: "/api/user/edit_avatar",
			method: "post",
		},
		data,
		false
	);
}



//学生档案详情
export function filesDetail(data) {
	return http.request({
			url: "/api/user/files",
			method: "post",
		},
		data,
		false
	);
}


//学术成绩
export function userAcademic(data) {
	return http.request({
			url: "/api/user/user_academic",
			method: "post",
		},
		data,
		false
	);
}



//学术成绩详情
export function academicDetails(data) {
	return http.request({
			url: "/api/user/academic_details",
			method: "post",
		},
		data,
		false
	);
}




//课外活动
export function userActivity(data) {
	return http.request({
			url: "/api/user/user_activity",
			method: "post",
		},
		data,
		false
	);
}



//课外活动
export function userActivitydetails(data) {
	return http.request({
			url: "/api/user/user_activity_details",
			method: "post",
		},
		data,
		false
	);
}



//选校申请
export function userApplication(data) {
	return http.request({
			url: "/api/user/user_application",
			method: "post",
		},
		data,
		false
	);
}


//申请详情
export function useraApplicationDetails(data) {
	return http.request({
			url: "/api/user/user_application_details",
			method: "post",
		},
		data,
		false
	);
}



//消息提醒
export function getmessages(data) {
	return http.request({
			url: "/api/user/getmessages",
			method: "post",
		},
		data,
		false
	);
}



//通知详情
export function getmessagesdetail(data) {
	return http.request({
			url: "/api/user/getmessagesdetail",
			method: "post",
		},
		data,
		false
	);
}



//传openid

export function getOpenid(data) {
	return http.request({
			url: "/api/user/get_openid",
			method: "post",
		},
		data,
		false
	);
}



